import { type IConfigItem } from '../types';
import { computed } from 'vue';

export const useSearchAreaConfig = <T extends object>(cb: () => Array<IConfigItem<T>>) => {
  const searchAreaConfig = computed(cb);
  return {
    searchAreaConfig,
  };
};
